package com.yd.domain.sys;

import com.yd.domain.commom.DomainObject;

import java.util.Date;

/**
 * @author zy
 * @create 2018-03-12 14:11
 * @desc 日志实体类
 **/
public class Logger extends DomainObject<Logger> {
    public static final class LOG_TYPE{
        public static final String UPDATE="update";//修改
        public static final String ADD="add";//添加
        public static final String DELETE="delete";//删除
    }
    public static final class STATUS{
        public static final String SUCCESS="success";//成功
        public static final String FAIL="fail";//失败
    }
    public static final class MODEL_TYPE{
        public static final String MSGINFO="msginfo";//信息交流
        public static final String DIC="dic";//字典管理
        public static final String GOODTYPE="goodType";//商品类型
        public static final String NOTICE="notice";//公告模块
        public static final String OLDRETRIEVE="oldRetrieve";//公告模块
        public static final String ROLEMANAGE="roleManage";//公告模块
        public static final String SHAREINFO="shareInfo";//公告模块
        public static final String PERMISSION="permission";//公告模块
    }
    private String title;//标题
    private String operUser;//修改人
    private String operUserName;//修改人姓名
    private Date operTime=new Date();//修改时间
    private String log_type;//日志类型
    private String des;//描述
    private String status;//状态
    private String ipAddress;//ip
    private String modelType;//所属模块
    private String pref;//修改前
    private String suff;//修改后

    public Logger(String title, String operUser, String log_type, String status, String modelType, String pref, String suff, String des) {
        this.title = title;
        this.operUser = operUser;
        this.log_type = log_type;
        this.des = des;
        this.status = status;
        this.modelType = modelType;
        this.pref = pref;
        this.suff = suff;
    }
    public Logger(String title, String operUser, String log_type, String status, String modelType, String pref, String suff) {
        this.title = title;
        this.operUser = operUser;
        this.log_type = log_type;
        this.status = status;
        this.modelType = modelType;
        this.pref = pref;
        this.suff = suff;
    }
    public Logger(String title, String operUser, String log_type, String status, String pref, String suff) {
        this.title = title;
        this.operUser = operUser;
        this.log_type = log_type;
        this.status = status;
        this.pref = pref;
        this.suff = suff;
    }

    public Logger() {
    }

    public String getPref() {
        return pref;
    }

    public void setPref(String pref) {
        this.pref = pref;
    }

    public String getSuff() {
        return suff;
    }

    public void setSuff(String suff) {
        this.suff = suff;
    }

    public String getOperUserName() {
        return operUserName;
    }

    public void setOperUserName(String operUserName) {
        this.operUserName = operUserName;
    }

    public String getModelType() {
        return modelType;
    }

    public void setModelType(String modelType) {
        this.modelType = modelType;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getOperUser() {
        return operUser;
    }

    public void setOperUser(String operUser) {
        this.operUser = operUser;
    }

    public Date getOperTime() {
        return operTime;
    }

    public void setOperTime(Date operTime) {
        this.operTime = operTime;
    }

    public String getLog_type() {
        return log_type;
    }

    public void setLog_type(String log_type) {
        this.log_type = log_type;
    }

    public String getDes() {
        return des;
    }

    public void setDes(String des) {
        this.des = des;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public String getIpAddress() {
        return ipAddress;
    }

    public void setIpAddress(String ipAddress) {
        this.ipAddress = ipAddress;
    }

    @Override
    public String toString() {
        return "Logger{" +
                "title='" + title + '\'' +
                ", operUser='" + operUser + '\'' +
                ", operTime=" + operTime +
                ", log_type='" + log_type + '\'' +
                ", des='" + des + '\'' +
                ", status='" + status + '\'' +
                ", ipAddress='" + ipAddress + '\'' +
                '}';
    }
}
